package com.example.demo1.pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户资金往来表
 * </p>
 *
 * @author gong
 * @since 2023-02-27
 */
@Getter
@Setter
@TableName("fund_intercourse")
public class FundIntercourse implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单号
     */
    private String orderNumber;

    /**
     * 流水号
     */
    private String serialNumber;

    /**
     * 钱包id
     */
    private Long walletId;

    /**
     * 资金账号
     */
    private String fundAccount;

    /**
     * 币种，默认“CNY”
     */
    private String currency;

    /**
     * in: 收入, out: 支出
     */
    private String type;

    /**
     * 业务类型: 100_in: 充值, 200_out: 提现, 300_payment: 支付, 400_receipt: 收款,500_withdrawal:退款
     */
    private String businessType;

    /**
     * 对方用户id
     */
    private Long oppositeRefId;

    /**
     * 对方账号
     */
    private String oppositeFundAccount;

    /**
     * 发生金额
     */
    private BigDecimal amount;

    /**
     * 状态: ok:成功, fail: 失败, processing: 处理中
     */
    private String status;

    private LocalDateTime createTime;

    private LocalDateTime modifyTime;


}
